# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=noson
pkgver=2.3.2
pkgrel=0
pkgdesc="An easy client interface to drive SONOS player"
url="https://janbar.github.io/noson/"
arch="all"
license="GPL-3.0-only"
subpackages="$pkgname-dev"
makedepends="
	cmake
	flac-dev
	openssl-dev
	pulseaudio-dev
	zlib-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/janbar/noson/archive/$pkgver.tar.gz
	"
options="!check" # No unit tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=1
	make -C build
}

package() {
	make DESTDIR="$pkgdir" install -C build
}

sha512sums="f34d69d7ca9935c551e49ea62ee9cbf988717bcaff34e7812b883a364e5fc7145007320232994e58e89bf22d7110350be453a6f00a6f3a7da6fe3ec7a928e685  noson-2.3.2.tar.gz"
